/*
 * @Description  :
 * @Author       : YiDing Xue
 * @Date         : 2023-02-23
 * @LastEditors  : YiDing Xue
 * @LastEditTime : 2023-02-23
 */
const proxyConfigMappings = {
  mylocal: {
    prefix: '/tourism_AI/api',
    target: 'http://192.168.1.126:8000/api'
  },
  dev: {
    prefix: '/tourism_AI/api',
    target: 'https://test1.somytrip.com/tourism_AI/api' // 测试环境
    // target: 'https://lovely-sharing-mutt.ngrok-free.app/tourism_AI/api' //福星本地测试
  },
  test: {
    prefix: '/tourism_AI/api',
    target: 'https://test1.somytrip.com/tourism_AI/api'
  },
  prod: {
    prefix: '/tourism_AI/api',
    target: 'https://www.somytrip.com/tourism_AI/api'
  }
}

export function getProxyConfig(envType = 'local') {
  return proxyConfigMappings[envType]
}
